<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生成绩管理系统 管理员后台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/css/default.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/default/easyui.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/icon.css}" />
    <script type="text/javascript" th:src="@{/easyui/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/easyui/jquery.easyui.min.js}"></script>
	<script type="text/javascript" th:src='@{/easyui/js/outlook2.js}'> </script>
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/
         var usertype = /*[[${session.usertype}]]*/'';
         if(usertype == "1" || usertype == "3"){
             var _menus = {"menus":[
                     {"menuid":"2","icon":"","menuname":"学生信息管理",
                         "menus":[
                             {"menuid":"21","menuname":"学生列表","icon":"icon-user-student","url":/*[[@{/student/student_list}]]*/''},
                         ]
                     },
                     {"menuid":"4","icon":"","menuname":"班级信息管理",
                         "menus":[
                             {"menuid":"42","menuname":"班级列表","icon":"icon-house","url":/*[[@{/clazz/clazz_list}]]*/''}
                         ]
                     },
                     {"menuid":"3","icon":"","menuname":"教师信息管理",
                         "menus":[
                             {"menuid":"31","menuname":"教师列表","icon":"icon-user-teacher","url":/*[[@{/teacher/teacher_list}]]*/''},
                         ]
                     },
                     {"menuid":"6","icon":"","menuname":"课程信息管理",
                         "menus":[
                             {"menuid":"61","menuname":"课程列表","icon":"icon-book-open","url":/*[[@{/course/course_list}]]*/''},
                         ]
                     },
                     {"menuid":"7","icon":"","menuname":"选课信息管理",
                         "menus":[
                             {"menuid":"71","menuname":"选课列表","icon":"icon-book-open","url":/*[[@{/selectedCourse/selectedCourse_list}]]*/''},
                         ]
                     },
                     {"menuid":"8","icon":"","menuname":"考勤信息管理",
                         "menus":[
                             {"menuid":"81","menuname":"考勤列表","icon":"icon-book-open","url":/*[[@{/attendance/attendance_list}]]*/''},
                         ]
                     },
                     {"menuid":"9","icon":"","menuname":"请假信息管理",
                         "menus":[
                             {"menuid":"91","menuname":"请假列表","icon":"icon-book-open","url":/*[[@{/leave/leave_list}]]*/''},
                         ]
                     },
                     {
                         "menuid": "10", "icon": "", "menuname": "成绩信息管理",
                         "menus": [
                             {
                                 "menuid": "101",
                                 "menuname": "成绩列表",
                                 "icon": "icon-book-open",
                                 "url": /*[[@{/score/score_list}]]*/''
                             },
                             {
                                 "menuid": "101",
                                 "menuname": "成绩统计",
                                 "icon": "icon-book-open",
                                 "url": /*[[@{/score/scoreStats}]]*/''
                             },

                         ]
                     },
                     {"menuid":"5","icon":"","menuname":"系统管理",
                         "menus":[
                             {"menuid":"51","menuname":"修改密码","icon":"icon-set","url":/*[[@{/system/personalView}]]*/''},
                         ]
                     }
                 ]};
         }
         if(usertype == "2"){
             var _menus = {"menus":[
                     {"menuid":"2","icon":"","menuname":"学生信息管理",
                         "menus":[
                             {"menuid":"21","menuname":"学生列表","icon":"icon-user-student","url":/*[[@{/student/student_list}]]*/''},
                         ]
                     },
                     {"menuid":"7","icon":"","menuname":"选课信息管理",
                         "menus":[
                             {"menuid":"71","menuname":"选课列表","icon":"icon-book-open","url":/*[[@{/selectedCourse/selectedCourse_list}]]*/''},
                         ]
                     },
                     {"menuid":"8","icon":"","menuname":"考勤信息管理",
                         "menus":[
                             {"menuid":"81","menuname":"考勤列表","icon":"icon-book-open","url":/*[[@{/attendance/attendance_list}]]*/''},
                         ]
                     },
                     {"menuid":"9","icon":"","menuname":"请假信息管理",
                         "menus":[
                             {"menuid":"91","menuname":"请假列表","icon":"icon-book-open","url":/*[[@{/leave/leave_list}]]*/''},
                         ]
                     },
                     {
                         "menuid": "10", "icon": "", "menuname": "成绩信息管理",
                         "menus": [
                             {
                                 "menuid": "101",
                                 "menuname": "成绩列表",
                                 "icon": "icon-book-open",
                                 "url": /*[[@{/score/score_list}]]*/''
                             }
                         ]
                     },
                     {"menuid":"5","icon":"","menuname":"系统管理",
                         "menus":[
                             {"menuid":"51","menuname":"修改密码","icon":"icon-set","url":/*[[@{/system/personalView}]]*/''},
                         ]
                     }
                 ]};
         }


        /*]]>*/
    </script>

</head>
<body class="easyui-layout" style="overflow-y: hidden"  scroll="no">

    <div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
        background: url(images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
        line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
        <span style="float:right; padding-right:20px;" class="head">
            <span style="color:red; font-weight:bold;" th:if="${session.usertype == '1'}" th:text="${session.admin.username}">&nbsp</span>
            <span style="color:red; font-weight:bold;" th:if="${session.usertype == '2'}" th:text="${session.student.username}">&nbsp</span>
            <span style="color:red; font-weight:bold;" th:if="${session.usertype == '3'}" th:text="${session.teacher.username}">&nbsp</span>
            您好&nbsp;&nbsp;&nbsp;
            <a th:href="@{/system/logout}" id="loginOut">安全退出</a>
        </span>
        <span style="padding-left:10px; font-size: 16px; ">学生信息管理系统</span>
    </div>
    <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
        <div class="footer">1710031565@qq.com</div>
    </div>
    <div region="west" hide="true" split="true" title="导航菜单" style="width:180px;" id="west">
	<div id="nav" class="easyui-accordion" fit="true" border="false">
		<!--  导航内容 -->
	</div>
	
    </div>
    <div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
        <div id="tabs" class="easyui-tabs"  fit="true" border="false" th:include="system/welcome :: welcome">

		</div>
    </div>

	
</body>
</html>